

/**
 * @author keithcasamento Joe Morreale
 *
 */
public class Menu
{
	
    public static void main(String[] args)
    {
        AdCompanyAPI adapi = new AdCompanyAPI(1);
        adapi.addAd("Buy Java!");
        adapi.addAd("Read books!");

        InvestorAPI api = new InvestorAPI("keith", "kcasamento@gmail.com");
        api.changeCurrInv(0);
        System.out.println("Initial balance is $" + api.checkBalance());
        api.buyStock(10, "att");
        System.out.println("Att purchased!");
        System.out.println("Balance is after buying att is  " + api.checkBalance());

        api.buyStock(10, "goog");
        System.out.println("\nGoogle purchased!");
        System.out.println("Balance after buying google is " + api.checkBalance());
        System.out.println("Current holdings after buying google are: ");
        api.checkHoldings();

        api.sellStock(7, "goog");
        System.out.println("\nCurrent holdings after selling 7 shares of google are: ");
        System.out.println("Balance after selling 7 shares of google: " + api.checkBalance());
        api.checkHoldings();


        api.createInvestor("jon", "jon@gmail.com");
        api.changeCurrInv(1);
        System.out.println("New user's balance is: " + api.checkBalance());
        api.buyStock(20, "yhoo");
        System.out.println("Balance is " + api.checkBalance());

        api.changeCurrInv(4);

        //Using AdminAPI you can test AdCompanyAPI and AdminAPI functions
        AdminAPI adAAPI = new AdminAPI();

        adAAPI.getPlayer(0);
        adAAPI.getPlayer(1);
        adAAPI.selectAwards(0);
        //create ad company...
        //add some ads...
        //delete adds...
        //pay balance...
        //do AdminAdAPI things...
        //etc...
    }
}
